package com.cion.shardingjdbcDemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.cion.shardingjdbcDemo.entity.Demo;
import com.cion.shardingjdbcDemo.services.DemoService;
import com.cion.shardingjdbcDemo.services.IDemoService;

@SpringBootApplication
public class App {
	public static void main(String[] args) {
		ConfigurableApplicationContext ctx = SpringApplication.run(App.class, args);
		IDemoService demoservice = ctx.getBean(DemoService.class);
		for(int i = 0 ; i<1; i++) {
			Demo demo = demoservice.testInsert();
			demoservice.testFind(demo);
		}
	}
	
}
